home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…tion Library 4 (Reseller)
/
Apple Ref. & Pres. Lib.v4.0.iso
/
5-Fonts & Software
/
Applications
/
PageMaker
/
PageMaker 3.02
/
PageMaker 3.02.rsrc
/
STR#_306.txt
< prev
next >
Wrap
Text File
|
1989-06-19
|
2KB
|
150 lines
3 add index exch 2 add index dup
4 1 roll sub mul add
counttomark 1 add 1 roll cleartomark}
counttomark dup 3 add -1 roll exch
2 sub mul dup floor cvi
dup 3 1 roll sub exch dup
{exch pop abs 1 exch sub}
{ abs exch abs 2 copy add 1 gt {1 sub dup mul exch 1 sub dup mul add 1 sub }{ dup mul exch dup mul add 1 exch sub } ifelse }
/imbuf w bits mul 7 add 8 idiv string def
x0 y0 translate w h bits [sx 0 0 sy 0 0]
{currentfile imbuf AsBin {readstring} {readhexstring} ifelse pop} image
} def
% *** call image ***
%
/sx w dw div def
/sy h dh div def
% *** call settransfer ***
%
/tweakfunc load AldSettransfer
%
% *** call setscreen ***
%
freq angle /spotfunc load setscreen
%
AldNewproc cvx
} def
/AldSettransfer {
currenttransfer exch AldConcatprocs AldOldsettransfer
} def
%
/AldNewproc AldProc1 length AldProc2 length add array def
AldNewproc 0 AldProc1 putinterval
AldNewproc AldProc1 length AldProc2 putinterval
% *** redefine settransfer ***
%
/AldOldsettransfer /settransfer load def
/AldConcatprocs {
/AldProc1 exch cvlit def
/AldProc2 exch cvlit def
/angle exch def
/freq exch def
/bits exch def
/h exch def /w exch def
/dh exch def /dw exch def
/y0 exch def /x0 exch def
/AsBin exch def
%
/S_IMAGEV3 {
%
% get all the parameters
%
/tweakfunc exch def
/spotfunc exch def
/imbuf w 7 add 8 idiv string def
clr setgray
x0 y0 translate w h inv [sx 0 0 sy 0 0]
{currentfile imbuf AsBin {readstring} {readhexstring} ifelse pop} imagemask
} def
/S_IMAGEMASKV3 {
/clr exch def /inv exch def
/h exch def /w exch def
/dh exch def /dw exch def
/y0 exch def /x0 exch def
/AsBin exch def
/sx w dw div def
/sy h dh div def